// 按钮组件
<template>
    <a-button :type='type' @click="onClick" :loading="loading" :size="size">
        <slot name="icon"></slot>
        
        {{conText}}</a-button>
</template>

<script>
export default {
    name: 'ContextButton',
    props:{
        //按钮文字
        conText:{
            type:String,
            default:()=>'按钮'
        },
        //按钮类型
        type:{
            type:String,
            default:() =>'default'
        },
        //是否加载中
        loading:{
            type:Boolean,
            default:()=>false
        },
        size:{
            type:String,
            default:() =>'default'
        }


    },

    data() {
        return {
            
        };
    },

    mounted() {
        
    },

    methods: {
        onClick(){
            this.$emit('click')

        },
        
    },
};
</script>

<style lang="less" scoped>

</style>